<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>评论模块</title>
  <link rel="stylesheet" href="/admin/assets/lib/layui/css/layui.css">
  <link rel="stylesheet" href="/admin/assets/css/assets.css">
</head>
<body>
  <div class="layui-card">
    <div class="layui-card-header">评论管理</div>
    <div class="layui-card-body">


<table class="layui-table">
  <colgroup>
    <col width="5%">
    <col width="15%">
    <col width="30%">
    <col width="20%">
    <col width="20%">
    <col>
  </colgroup>
  <thead>
    <tr>    
      <th>ID</th>
      <th>评论人</th>
      <th>评论内容</th>
      <th>评论时间</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody id="tb">
   <!-- 内容  -->
  </tbody>
</table>
    </div>
  </div>



<script type="text/html" id="assets">
{{each data v i}}
    <tr>
      <td>{{v.id}}</td>
      <td>{{v.uname}}</td>
      <td>{{v.content}}</td>
      <td>{{v.cdate | mytime}}</td>
      <td><button type="button" class="layui-btn layui-btn-danger layui-btn-xs del" myid = {{v.id}}>删除</button></td>
    </tr>
{{/each}}

</script>


  <script src="/admin/assets/lib/template-web.js"></script>
  <script src="/admin//assets/lib/jquery.js"></script>
  <script src="/admin/assets/lib/layui/layui.all.js"></script>
  <script src="/admin/assets/js/common.js"></script>
  <script src="/admin/assets/js/comment.js"></script>
</body>
</html>